package services.common;

import models.common.entity.t_bond;
import services.base.BaseService;

import common.utils.Factory;

import daos.common.CompanyBondDao;

/**
 * 企业保证金service
 *@author liaijun
 *@createDate 2017/04/17
 */
public class CompanyBondServic extends BaseService<t_bond>{

	CompanyBondDao bondDao = Factory.getDao(CompanyBondDao.class);
	
	public CompanyBondServic()
	{
		super.basedao = this.bondDao;
	}
	
	/**
	 * 依据挂牌的用户id查询保证金
	 * @param bid_id 标的id
	 * @return t_bond
	 * @author liaijun
	 * @createDate 2017/04/17
	 */
	public t_bond findBondByBidId(long bid_id){
       return  bondDao.findBondByBidId(bid_id);
	}
	
	public boolean save(t_bond t){
		return bondDao.save(t);
	}
	
	
}
